package com.sasis.model;

import java.util.Collection;

public class Handle extends BaseEntity implements Subject, Tree {
	
	private static final long serialVersionUID = 1L;

	private Long typeId;
	
	private Long functionId;
	
	private boolean allow;
	
	public Long getFunctionId() {
		return functionId;
	}

	public void setFunctionId(Long menuId) {
		this.functionId = menuId;
	}

	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	public boolean isAllow() {
		return allow;
	}

	public void setAllow(boolean allow) {
		this.allow = allow;
	}

	public boolean isFunction() {
		return false;
	}

	public Subject getParent() {
		return null;
	}

	public Collection getChilds() {
		return null;
	}

	public boolean isSupport() {
		return true;
	}

}
